#ifndef _CONFIG_H
#define _CONFIG_H

struct Block
{
	std::map<const char*, const char*> values;
};

class DLL_EXPORT ConfigFile
{
	char* m_filename;
	std::map<const char*, Block*> blocks;
	Mutex readlock;
public:
	ConfigFile(char* fname)
	{
		m_filename = fname;
	}

	bool Load();
	char* GetChar(const char* blockname, const char* describer);
	float GetFloat(const char* blockname, const char* describer, float defaul);
};

#endif